<div ng-controller="labelCtrl">
    <div class="bg-light lter b-b wrapper-md ng-scope">
        <h4 class="m-n font-thin">商品管理</h4>
    </div>
    <div class="wrapper-md">
        <div class="panel">
            <div class="row wrapper">
                <div class="col-sm-12">
                    <div class=" pull-right">
                        <a class="btn btn-sm btn-info" ng-click="openAddLabel()">添加属性参数</a>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="panel-body">
                <div class="table-responsive pos-rlt">
                    <table class="table table-striped table-bordered b-t b-light pos-rlt m-n">
                        <thead>
                            <tr>
                                <th>属性参数</th>
                                <th>归属分类</th>
                                <th  width="220">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr ng-repeat="item in list">
                                <td>{{item.name}}</td>
                                <td>{{item.systemTypeName}}</td>
                                <td>
                                    <button class="btn btn-sm btn-info" ng-click="openEditLabel(item.id)">修改</button>
                                    <button class="btn btn-sm btn-danger" ng-click="deleteLabel(item.id)">删除</button>
                                    <button class="btn btn-sm btn-success" ui-sref="app.labelItems({id:item.id})">属性值管理</button>
                                </td>
                            </tr>
                        </tbody>
                    </table>

                    <div ng-if="list.length<=0 && !app.loading" class="padder-v text-center">
                        <span class="h6">~未搜索到任何数据~</span>
                    </div>
                    <div>
                        <circle-loading ng-if="app.loading"></circle-loading>
                    </div>
                </div>
            </div>
            <footer class="panel-footer">
                <div class="row">
                    <div class="col-sm-offset-4 col-sm-4 text-center">
                        <small class="text-muted inline m-t-sm m-b-sm">显示第 {{startRow}} 至 {{endRow}} 项结果，共 {{totalItems}} 项</small>
                    </div>
                    <div class="col-sm-4 text-right text-center-xs">
                        <pagination boundary-links="true" total-items="totalItems" ng-model="currentPage"
                                    ng-change="pageChanged()" max-size="{{maxPageRow}}" class="pagination-sm m-t-none m-b"
                                    previous-text="上一页" next-text="下一页"
                                    first-text="首页" last-text="尾页"></pagination>
                    </div>
                </div>
            </footer>
        </div>
    </div>

</div>